
import { getRequest, postRequest } from '@/lib/axios';
import { SWAPSYMBOL, SWAPORDER, SWAPENTRUST } from '@/config/api-constant/payServerse'


// 获取兑换订单
export const swapOrderApi = (param, type) => {
    return postRequest(SWAPORDER, param, type)
}
// swap挂单
export const swapEntrustApi = (param, type) => {
    return postRequest(SWAPENTRUST, param, type)
}
// 获取Swap交易对（列表）
export const swapSymbolApi = (param) => {
    return getRequest(SWAPSYMBOL, param)
}
// 新增、编辑Swap交易对（
export const swapSymbolEditApi = (param) => {
    return postRequest(SWAPSYMBOL, param)
}